#include<stdio.h>
#pragma warning(disable:4996)
int main()
{
	int n = 0;
	scanf("%d",&n);
	int i = 1;
	double sum = 0.0;
	for (i = 1; i <= n; i++)
	{
		sum = sum + 1.0 / i;
		printf("sum=%d\n", sum);
	}
	printf("%f", sum);
	return 0;
}